package com.ruoyi.library.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户借阅信息对象 user_borrow
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class UserBorrow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借阅记录编号 */
    private Long id;

    /** 图书编号 */
    @Excel(name = "图书编号")
    private Long bookId;

    /** 借书人ID */
    @Excel(name = "借书人ID")
    private Long borrowerId;

    /** 借书人姓名 */
    @Excel(name = "借书人姓名")
    private String borrowerName;

    /** 是否缴纳过逾期费用（0：未缴纳，1：已缴纳） */
    @Excel(name = "是否缴纳过逾期费用", readConverterExp = "0=：未缴纳，1：已缴纳")
    private Integer isOverdueFeePaid;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowTime;

    /** 应还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 实际归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualReturnTime;

    /** 逾期费用 */
    @Excel(name = "逾期费用")
    private BigDecimal overdueFee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setBorrowerId(Long borrowerId) 
    {
        this.borrowerId = borrowerId;
    }

    public Long getBorrowerId() 
    {
        return borrowerId;
    }

    public void setBorrowerName(String borrowerName) 
    {
        this.borrowerName = borrowerName;
    }

    public String getBorrowerName() 
    {
        return borrowerName;
    }

    public void setIsOverdueFeePaid(Integer isOverdueFeePaid) 
    {
        this.isOverdueFeePaid = isOverdueFeePaid;
    }

    public Integer getIsOverdueFeePaid() 
    {
        return isOverdueFeePaid;
    }

    public void setBorrowTime(Date borrowTime) 
    {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() 
    {
        return borrowTime;
    }

    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }

    public void setActualReturnTime(Date actualReturnTime) 
    {
        this.actualReturnTime = actualReturnTime;
    }

    public Date getActualReturnTime() 
    {
        return actualReturnTime;
    }

    public void setOverdueFee(BigDecimal overdueFee) 
    {
        this.overdueFee = overdueFee;
    }

    public BigDecimal getOverdueFee() 
    {
        return overdueFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("borrowerId", getBorrowerId())
            .append("borrowerName", getBorrowerName())
            .append("isOverdueFeePaid", getIsOverdueFeePaid())
            .append("borrowTime", getBorrowTime())
            .append("returnTime", getReturnTime())
            .append("actualReturnTime", getActualReturnTime())
            .append("overdueFee", getOverdueFee())
            .toString();
    }
}
